# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=xxeinjector
pkgver=56.150067a
pkgrel=3
groups=('blackarch' 'blackarch-exploitation' 'blackarch-webapp')
pkgdesc='Tool for automatic exploitation of XXE vulnerability using direct and different out of band methods.'
arch=('any')
url='https://github.com/enjoiz/XXEinjector'
license=('custom:unknown')
depends=('ruby')
makedepends=('git')
source=("$pkgname::git+https://github.com/enjoiz/XXEinjector.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -dm 755 "$pkgdir/usr/bin"

  install -Dm 755 XXEinjector.rb "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

